<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2024/12/21
  Time: 14:25
  To change this template use File | Settings | File Templates.
--%>
<%@ page import="bean.Course" %>
<%@ page import="java.util.List" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8"/>
  <title>学生选课管理后台-首页</title>
  <jsp:include page="/conme/hd.jsp" flush="true" />
  <!--开始::内容-->
  <form action="updateServlet" method="post">
    <div class="form-group-col-2 mt-20">
      <div class="form-label">学生学号：</div>
      <div class="form-cont">
        <input type="text" name="sno" placeholder="学生学号" value="${mathes.sno}" readonly="readonly" class="form-control form-boxed">
      </div>
    </div>
    <div class="form-group-col-2 mt-20">
      <div class="form-label">所在系：</div>
      <div class="form-cont">
        <input type="text" name="sdept" placeholder="所在系" value="${mathes.sdept}" readonly="readonly" class="form-control form-boxed">
      </div>
    </div>
    <div class="form-group-col-2 mt-20">
      <div class="form-label">学生姓名：</div>
      <div class="form-cont">
        <input type="text" name="sname" placeholder="学生姓名" value="${mathes.sname}" readonly="readonly" class="form-control form-boxed">
      </div>
    </div>
    <div class="form-group-col-2">
      <div class="form-label">课程名称：</div>
      <div class="form-cont">
        <select style="width:auto;" name="cno">
          <c:forEach items="${courseList}" var="cl">
            <option value="${cl.cno}" ${cl.cno == mathes.cno ? "selected":""}>${cl.cname}</option>
          </c:forEach>
        </select>
      </div>
    </div>
    <div class="form-group-col-2 mt-20">
      <div class="form-label">课程成绩：</div>
      <div class="form-cont">
        <input type="text" name="grade" placeholder="课程成绩" value="${mathes.grade}" class="form-control form-boxed">
      </div>
    </div>
    <div class="form-group-col-2">
      <div class="form-label"></div>
      <div class="form-cont">
        <input type="submit" class="btn btn-primary" value="提交" />
        <input type="reset" class="btn btn-secondary" value="重置" />
      </div>
    </div>
  </form>
  <!--结束::内容-->
  <jsp:include page="/conme/foot.jsp" flush="true" />
  </body>
</html>